package com.sheyu.mall.order.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sheyu.common.to.SeckillOrderTo;
import com.sheyu.common.utils.PageUtils;
import com.sheyu.mall.order.entity.OmsOrderEntity;
import com.sheyu.mall.order.vo.OrderConfirmVo;
import com.sheyu.mall.order.vo.OrderSubmitVo;
import com.sheyu.mall.order.vo.SubmitOrderResponseVo;

import java.util.Map;
import java.util.concurrent.ExecutionException;

/**
 * 订单
 *
 * @author sheyu
 * @email sheyu@XXX.com
 * @date 2020-07-27 14:28:23
 */
public interface OmsOrderService extends IService<OmsOrderEntity> {

    PageUtils queryPage(Map<String, Object> params);

    OrderConfirmVo comfirmOrder() throws ExecutionException, InterruptedException;

    SubmitOrderResponseVo submitOrder(OrderSubmitVo vo);

    OmsOrderEntity getOrderStatus(String orderSn);

    void closeOrder(OmsOrderEntity orderEntity);

    void createSeckillOrder(SeckillOrderTo seckillOrderTo);
}

